#!/bin/bash
T='gYw' # The test text

echo "			default  40	 41	 42	 43	 44	 45	 46	47"
## FGs 为前景(foreground)色, BG 为背景(background)色
for FGs in '\tm' '\t1m' '\t30m' '\t1;30m' '\t31m' '\t1;31m' '\t32m' '\t1;32m' '\t33m' '\t1;33m' '\t34m' '\t1;34m' '\t35m' '\t1;35m' '\t36m' '\t1;36m' '\t37m' '\t1;37m'
	        do
				        FG=$(echo $FGs|tr -d ' ')
						        echo -en "$FGs\t\033[$FG $T "
								        for BG in 40m 41m 42m 43m 44m 45m 46m 47m;
										                do
															                echo -en " \033[$FG\033[$BG $T \033[0m"
																			        done
																					        echo
																							done
																							echo
echo  "=\\e\[y1;x;y2 str \\e\[0m"
echo -e "\e[1;43;30m test \e[0m"